<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<%@ attribute name="name" required="true" %>
<%@ attribute name="path" required="true" %>
	<spring:bind path="${path}">
		
		<div class="form_row">
			<div class="left_side${clazz}"><c:out value="${name}"/></div>
			<div class="right_side"><jsp:doBody/></div>
			<c:if test="${status.error}">
			<c:set var="clazz" value=" error"/>
			<div class="form_error_row">
				<c:forEach  items="${status.errorMessages}" var="msg" >
					<span class="error_message"><c:out value="${msg}"/><br/></span>
				</c:forEach>
			</div>
		</c:if>
		</div>
		
	</spring:bind>